Tutor\Models\OrderModel D

Total Complexity 172
Dependencies 10
Dependents 9
Total lines 1,613
Lines of code 866
Logical lines of code 409
Comment lines 532
Methods 35
Properties 3

Methods 35

Method Rating Maintainability Complexity Lines of code
calculate_order_price()
B
44 19 43
get_discounts_by_user()
B
33 12 121
get_refunds_by_user()
B
34 12 111
order_status_update()
A
44 14 43
should_show_pay_btn()
A
49 14 28
get_user_orders()
A
44 10 46
get_order_status_by_payment_status()
A
52 9 30
delete_order()
A
48 8 33
get_order_items_by_id()
A
48 7 31
create_order()
S
52 5 26
get_order_by_id()
S
45 4 41
get_order_refunds()
S
47 4 40
insert_order_items()
S
56 5 17
get_orders()
S
50 4 28
get_item_sellable_price()
S
62 5 12
mark_as_paid()
S
54 4 21
get_refund_amount()
S
56 3 18
get_order_count()
S
56 3 18
update_order()
S
58 3 15
get_tutor_customer_data()
S
54 2 20
get_enrollment_ids()
S
58 2 17
has_exclusive_tax()
S
77 3 3
has_inclusive_tax()
S
77 3 3
payment_status_update()
S
60 2 15
get_item_sold_price()
S
66 3 8
is_manual_payment()
S
67 2 8
calculate_discount_amount()
S
66 2 8
get_searchable_fields()
S
63 1 13
add_order_discount()
S
63 1 12
get_table_name()
S
82 1 3
get_item()
S
67 1 9
get_order_items_fillable_fields()
S
82 1 3
get_payment_status()
S
65 1 9
get_order_status()
S
66 1 8
__construct()
S
73 1 5